import { IPSChartSeriesPie } from './ipschart-series-pie';
import { PSDEChartSeriesCSNoneImplBase2 } from './psdechart-series-csnone-impl-base2';

export class PSDEChartSeriesPieImpl extends PSDEChartSeriesCSNoneImplBase2 implements IPSChartSeriesPie {
  get center(): IModel {
    return this.M.center;
  }

  get minAngle(): number {
    return this.M.minAngle;
  }

  get minShowLabelAngle(): number {
    return this.M.minShowLabelAngle;
  }

  get radius(): IModel {
    return this.M.radius;
  }

  get roseType(): IModel {
    return this.M.roseType;
  }

  get startAngle(): number {
    return this.M.startAngle;
  }

  get cls(): string {
    return 'PSDEChartSeriesPieImpl';
  }

  instanceof(cls: string): boolean {
    if (
      cls == 'IPSModelObject' ||
      cls == 'IPSObject' ||
      cls == 'control.IPSControlItem' ||
      cls == 'control.IPSControlItemNavigatable' ||
      cls == 'control.IPSControlObjectNavigatable' ||
      cls == 'control.IPSNavigatable' ||
      cls == 'control.IPSNavigateParamContainer' ||
      cls == 'control.chart.IPSChartSeries' ||
      cls == 'control.chart.IPSChartSeriesCSNone' ||
      cls == 'control.chart.IPSChartSeriesPie'
    )
      return true;
    return super.instanceof(cls);
  }
}
